package com.xhj.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(value = "service-ucenter",fallback = MemberClientImpl.class)
public interface MemberClient {
    @RequestMapping("/member/countRegister/{day}")
    public Integer countRegister(@PathVariable("day")String day);
}

@Component
class MemberClientImpl implements MemberClient{

    @Override
    public Integer countRegister(String day) {
        return null;
    }
}